package com.spsoft.vatoutinv.service.vmsfulloutinvoice.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spsoft.vatoutinv.entity.vmsfulloutinvoice.VmsFullOutInvoiceCekc;
import com.spsoft.vatoutinv.mapper.VmsFullOutInvoiceCekcMapper;
import com.spsoft.vatoutinv.service.vmsfulloutinvoice.VmsFullOutInvoiceCekcService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 数电发票差额扣除信息 服务实现类
 * </p>
 *
 * @author chenxudong
 * @since 2024-04-01
 */
@Service
public class VmsFullOutInvoiceCekcServiceImpl extends ServiceImpl<VmsFullOutInvoiceCekcMapper, VmsFullOutInvoiceCekc> implements VmsFullOutInvoiceCekcService {

    @Override
    public List<VmsFullOutInvoiceCekc> getInvoiceCekcInfoByFoidId(Long foidId) {
        LambdaQueryWrapper<VmsFullOutInvoiceCekc> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(VmsFullOutInvoiceCekc::getFoidid, foidId);
        queryWrapper.orderByAsc(VmsFullOutInvoiceCekc::getId);
        return list(queryWrapper);
    }
}
